package com.nq.controller.backend;

import com.nq.common.ServerResponse;
import com.nq.pojo.FundsAppend;
import com.nq.pojo.FundsApply;
import com.nq.pojo.StFundApplyDetail;
import com.nq.pojo.vo.StFundApplyDetailVo;
import com.nq.service.IFundsAppendService;
import com.nq.service.IFundsApplyService;
import com.nq.service.IStFundService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping({"/admin/stFund/"})
public class AdminStFundController {
    private static final Logger log = LoggerFactory.getLogger(AdminAgentController.class);
    @Autowired
    IStFundService stFundService;


    /**
     * 基金交易列表
     * @param request
     * @return
     */
    @RequestMapping({"getList.do"})
    @ResponseBody
    public ServerResponse getApplyList(@RequestParam(value = "pageNum", defaultValue = "1") int pageNum,
                                       @RequestParam(value = "pageSize", defaultValue = "12") int pageSize,
                                       StFundApplyDetailVo applyDetail, HttpServletRequest request) {
        return this.stFundService.getList(applyDetail, pageNum, pageSize, request);
    }


}
